//
// Created by root on 4/29/17.
//

#ifndef FUNNY_RUNNER_TRANSLATE_H
#define FUNNY_RUNNER_TRANSLATE_H

#include <stdio.h>
#include "../base/cmocka_test.h"
#include "../../src/base/constants.h"
#include "../../src/engine/common.h"
#include "../fa/runner_fa.h"
#include "../lex/runner_lex.h"

#define LOOP_STATEMENT_WITH_COMMA      "{case {when {a} then {b} , ...} else {c}}"
#define OPTIONAL_STATEMENT_WITH_COMMA  "{if {if_clause} then {then_clause} {, else {else_clause} ..}}"
#define STATEMENT_WITH_COMMENT         "{{a} + {b} {COMMENT \"a+b\"} + {c} {COMMENT {\"a+b+c\"}}}"

int setup_translate(void **state);
int teardown_translate(void **state);

FILE *create_temp_file(const char *);

#endif //FUNNY_RUNNER_TRANSLATE_H
